package com.jhk;

public class MainClass {

	
	public static void main(String[] args) {
//		ThreadClass tc = new ThreadClass("test");
//		ThreadClass tc1 = new ThreadClass("aaaa");
//		tc.start();		
//		tc1.start();
//		
	
		RunnableClass rc=new RunnableClass();
		Thread t = new Thread(rc,"first thread");
		Thread t1 = new Thread(rc,"second thread");
		Thread t2 = new Thread(rc,"third thread");
		
		t.setPriority(Thread.MAX_PRIORITY);
		t1.setPriority(Thread.MIN_PRIORITY);
//		t2.setPriority(1);
		
		t1.start();
		t.start();
//		t2.start();
		
		

	}

}
